package com.futvan.z.erp.crm_customer_ticket;

import org.springframework.stereotype.Service;
import com.futvan.z.framework.core.SuperService;

@Service
public class Crm_customer_ticketService extends SuperService {

    /**
     * 根据礼券id获取详细信息
     *
     * @return
     */
    public crm_customer_ticket getInfo(String zid) throws Exception {
        crm_customer_ticket info = sqlSession.selectOne("crm_customer_ticket_select_zid", zid);
        return info;
    }

    public void deleteTicket(String zid) {
        sqlSession.delete("crm_customer_ticket_delete_zid", zid);
    }

    public void insertTicket(crm_customer_ticket ticket){
        sqlSession.insert("crm_customer_ticket_insert",ticket);
    }
}
